{% assign default_paths = site.pages | map: "path" %}
{% assign page_paths = site.header_pages | default: default_paths %}

{% for path in page_paths %}
    
    {% assign page = site.pages | where: "path", path | first %}
    
    {% if page.title %}
        <a href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a>
    {% endif %}

    
{% endfor %}
